package com.example.demo.mapper;

import com.example.demo.pojo.Rule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Mapper
@Repository
public interface StomachMapper {

    void InsertRule(@Param("rules") ArrayList<Rule> rules);

    ArrayList<Rule> getAllData();

    void updateRule(@Param("rule") Rule rule);

    void InsertSingleRule(@Param("rule") Rule rule);

    void addSelf(@Param("id") int id);

    void deleteRule (@Param("id") int id);

}
